# @Author   :   hany
# @Time      :  2021/4/8
from basic.UIParent import UIParent, sleep
from basic.utils.asserts import asserts
from commen.page.ann.myPage import myPage
from commen.page.ann.taxPage import taxPage
from commen.page.ann.indexPage import IndexPage
from commen.page.ann.searchPage import searchPage


class TaxCase(UIParent):

    @classmethod
    def test_taxIndex(self):
        '''智慧税务首页页面校验'''

        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("智慧税务")
        sleep(3)
        taxText = taxPage.getName()
        print(taxText)
        asserts.true(taxText, "智慧税务首页页面校验")
